package com.jk.controller;

import com.jk.bean.ChongZhi;
import com.jk.bean.Page;
import com.jk.bean.SendPage;
import com.jk.service.ChongZhiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: 骚骚的🐏
 * @Author: 杨
 * @Date: 2019/3/20 14:01
 */
@Controller
@RequestMapping("chongzhi")
public class ChongZhiController {
    @Autowired
    private ChongZhiService chongZhiService;
    @ResponseBody
    @RequestMapping("queryVipChongZhi")
    public SendPage queryVipChongZhi(ChongZhi chongZhi, Page pag) {
        SendPage sd = chongZhiService.queryVipChongZhi(chongZhi, pag);
        return sd;

    }
    @ResponseBody
    @RequestMapping("queryJiFenChongZhi")
    public SendPage queryJiFenChongZhi(ChongZhi chongZhi,Page pag) {
        SendPage sd = chongZhiService.queryJiFenChongZhi(chongZhi, pag);
        return sd;
    }

}
